Clarify concise Phabricator patch descriptions - #6834
Open
ayoubdiourin7 wants to merge 6 commits into
Open
ayoubdiourin7 wants to merge 6 commits into
ayoubdiourin7 wants to merge 6 commits into
Conversation
suhaibmujahid
requested changes
Sep 23, 2026
suhaibmujahid
left a comment
Member
There was a problem hiding this comment.
Could you please rebase and solve the conflict?
…e-submit-patch-descriptions
suhaibmujahid
approved these changes
Sep 24, 2026
suhaibmujahid
left a comment
Member
There was a problem hiding this comment.
Did you test this? Could you share and example for before and after?
Contributor
Author
|
Yes, I tested it locally with the bug-fix agent on bug 2060318. Recorded Before{
"bug_id": 2060318,
"title": "Bug 2060318 - Expunge private download files on shutdown too, so permanent private browsing honours browser.download.deletePrivate",
"summary": "Private files queued via deletePrivateFileWhenPossible / deleteTemporaryPrivateFileWhenPossible were only removed on \"last-pb-context-exited\", which is never sent in permanent private browsing mode (and not when the browser quits with private windows still open). As a result, downloads were kept despite browser.download.deletePrivate being enabled.\n\nFactor the \"last-pb-context-exited\" cleanup into ExpungeAllPrivateFiles() and also call it on \"profile-before-change\". This keeps the existing enableDeletePrivate/deletePrivate pref check, as suggested in comment 5.",
"test_plan": "Added the xpcshell test test_deletePrivate_on_shutdown in toolkit/components/downloads/test/unit/common_test_Download.js. It only fires \"profile-before-change\" and checks that:\n- a private download made with deletePrivate=true is deleted;\n- a launched temporary private download is deleted;\n- a private download made with deletePrivate=false is kept.\nPer the run instructions, I did not build this or run the test locally. It needs CI/try."
}After{
"bug_id": 2060318,
"title": "Bug 2060318 - Delete private download files on shutdown if the private browsing session never ended",
"summary": "Private download files queued via deletePrivateFileWhenPossible / deleteTemporaryPrivateFileWhenPossible were only expunged on \"last-pb-context-exited\", which is never notified in permanent private browsing mode (nor if private windows are still open at shutdown). As a result, browser.download.deletePrivate had no effect in \"Never remember history\" mode.\n\nFactor the \"last-pb-context-exited\" cleanup into ExpungeAllPrivateFiles() and also call it on \"profile-before-change\". The lists are cleared after expunging, so calling it twice is harmless.",
"test_plan": "New xpcshell test test_deletePrivate_on_shutdown in toolkit/components/downloads/test/unit/common_test_Download.js (run via test_DownloadCore.js and test_DownloadLegacy.js). It notifies only \"profile-before-change\" and checks that a deletePrivate private download and a launched temporary private download are removed, while a private download made with deletePrivate=false is kept.\n./mach xpcshell-test toolkit/components/downloads/test/unit/test_DownloadCore.js toolkit/components/downloads/test/unit/test_DownloadLegacy.js\nNot built or run in the automated environment (building was out of scope for this run)."
}With this PR, the summary no longer points back to the bug discussion ("as suggested in comment 5") and gives a note that matters for review instead ("calling it twice is harmless"). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6727